<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>吉林师范大学学生档案转递单</title>
    <style type="text/css">
        body {
            padding: 0;
            margin: 0;
            width: 100vw;
            height: auto;
            display: flex;
            justify-content: center;
        }

        #box {
            width: 95vw;
            height: auto;
        }

        table {
            border: 1px solid #000;
            border-collapse: collapse;
            width: 100%;
        }

        th,
        td {
            border: 1px solid #000;
            text-align: center;
            padding: 5px;
        }

        span {
            padding: 0 5px;
        }

        .division-border {
            margin: 15px 0px;
            border-bottom: 1px dashed #000;
        }
        @media print {
            #printButton {
                display: none; /* 确保打印时不显示 */
            }
        }
    </style>
</head>

<body>
<div id="box">
    <h1 style="text-align: center;">吉林师范大学学生档案转递单</h1>
    <p style="display: flex; justify-content: space-between;">
        <span th:text="'转递编号：' + ${transferNumber}"></span>
        <span th:text="'档字：' + ${fileNumber}"></span>
    </p>
    <table>
        <tr>
            <td colspan="6" style="text-align: left;">
                <div style="text-indent: 2em;">
                    <p th:text="${receivingCenter}" style="text-decoration: underline;"></p>
                    <p>
                        兹将
                        <span th:text="${studentName}" style="text-decoration: underline;"></span>
                        等
                        <span th:text="${studentCount}" style="text-decoration: underline;"></span>
                        人的档案材料转去，请按档案目录清点查收，及时将回执(电子)寄回我馆人事档案部，谢谢。
                    </p>
                    <p>回函地址:吉林省四平市铁西区海丰大街1301号，邮编:136000</p>
                    <p>Email: jlsddag@jlnu.edu.cn</p>
                    <p style="display: flex; justify-content: space-between; padding: 0 25px;">
                        <span>经手人签名：</span>
                        <span>
                            <span th:text="${currentYear}"></span>年<span th:text="${currentMonth}"></span>月<span th:text="${currentDay}"></span>日
                        </span>
                    </p>
                </div>
            </td>
        </tr>
        <tr>
            <th>姓名</th>
            <th>学院名称</th>
            <th>转递类型</th>
            <th>正本（卷）</th>
            <th>副本（卷）</th>
            <th>档案材料（总件）</th>
        </tr>
        <tr>
            <td th:text="${studentName}"></td>
            <td th:text="${collegeName}"></td>
            <td th:text="${transferType}"></td>
            <td th:text="${originalCount}"></td>
            <td th:text="${copyCount}"></td>
            <td th:text="${totalFiles}"></td>
        </tr>
        <tr>
            <th>生源地</th>
            <th>学生本人电话</th>
            <th>就业单位名称</th>
            <th colspan="3">就业单位地址</th>
        </tr>
        <tr>
            <td th:text="${origin}"></td>
            <td th:text="${studentPhone}"></td>
            <td th:text="${employmentName}"></td>
            <td colspan="3" th:text="${employmentAddress}"></td>
        </tr>
    </table>
    <div class="division-border"></div>
    <table>
        <tr>
            <td style="width: 20px; font-weight: bold;">学生档案转递回执</td>
            <td style="text-align: left;">
                <div style="text-indent: 2em;">
                    <p>吉林师范大学档案馆人事档案部：</p>
                    <p>
                        你部于<span th:text="${receiptYear}"></span>年<span th:text="${receiptMonth}"></span>月<span th:text="${receiptDay}"></span>日转来的档案编号
                        <span th:text="${fileNumber}"></span><span th:text="${collegeName}"></span><span th:text="${studentName}"></span>等<span th:text="${studentCount}"></span>人的档案正本<span th:text="${originalCount}"></span>卷，副本<span th:text="${copyCount}"></span>卷，
                        档案材料共<span th:text="${totalFiles}"></span>件，已全部收到，现将回执寄回。
                    </p>
                    <p style="display: flex; justify-content: space-between; padding: 0 25px;">
                        <span>收件人签名：</span>
                        <span>收件单位盖章</span>
                    </p>
                    <p style="text-align: right;"><span th:text="${returnYear}"></span>年<span th:text="${returnMonth}"></span>月<span th:text="${returnDay}"></span>日</p>
                </div>
            </td>
        </tr>
    </table>
    <div class="division-border"></div>
    <table>
        <tr>
            <td style="width: 20px; font-weight: bold;">投寄局签章</td>
            <td style="text-align: left;">
                <div style="text-indent: 2em;">
                    <p>吉林师范大学档案馆人事档案部：</p>
                    <p>
                        <span th:text="${collegeName}"></span><span th:text="${fileNumber}"></span><span th:text="${studentName}"></span>
                        的学生档案已于<span th:text="${mailingYear}"></span>年<span th:text="${mailingMonth}"></span>月<span th:text="${mailingDay}"></span>日投寄至<span th:text="${receivingCenter}"></span>
                    </p>
                    <p style="display: flex; justify-content: space-between; padding: 0 25px;">
                        <span>投寄邮局盖章</span>
                        <span>投寄员(签名):</span>
                    </p>
                </div>
            </td>
        </tr>
    </table>
    <p>注：接收单位无法按时签署回执联时，请投递员填写并撕下投寄局签章联寄回，谢谢合作。</p>
</div>
<button id ="printButton" onclick="window.print()"  style="position: fixed; bottom: 20px; right: 20px; padding: 10px 20px; font-size: 16px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; cursor: pointer;">打印报告</button>
</body>

</html>
